// ZoneTable.h: interface for the ZoneTable class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ZONETABLE_H__C0F2A283_E138_430F_B85B_A7AE28A1E6A6__INCLUDED_)
#define AFX_ZONETABLE_H__C0F2A283_E138_430F_B85B_A7AE28A1E6A6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "MultiRecordsDatabaseElement.h"
#include "ZoneTableRecord.h"

namespace PDMS
{
	namespace PDMSDBIF
	{
		class DllExport ZoneTable : public DatabaseTableTemplate<ZoneTableRecord>
		{
			DECLARE_REGISTER_MAP( ZoneTable );
		public:
			ZoneTable();
			virtual ~ZoneTable();
			
			void SetID( unsigned long );
			void SetParentID( unsigned long );
			void SetDescription( const StdString& );
			void SetPurpose( const StdString& );
			void SetFunction(const StdString& );
			void SetNumber( int );
			void SetArea( int );
			void SetDUnion( int );
			void SetModule( const StdString& );
			void SetPspec( const StdString& );
			void SetIspec( const StdString& );
			void SetTspec( const StdString& );
			void SetRlstored( const StdString& );
			
			unsigned long GetID();
			unsigned long GetParentID();
			const StdString GetDescription();
			const StdString GetPurpose();
			const StdString GetFunction();
			const StdString GetModule();
			int GetNumber();
			int GetArea();
			int GetDUnion();
			const StdString GetPspec();
			const StdString GetIspec();
			const StdString GetTspec();
			const StdString GetRlstored();
			
		private:
			
		protected:
			virtual StdString GetOpenSQL( const StdString& strCondition );
			virtual StdString GetTableName();
			virtual void SetData( RecordPtr_ ptr );
		};
	}
}
#endif // !defined(AFX_ZONETABLE_H__C0F2A283_E138_430F_B85B_A7AE28A1E6A6__INCLUDED_)
